/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-08-01
 * Time: 21:51
 */
//实现二叉搜索树代码
public class Test {
    public static void main(String[] args) {
        SearchTree tree=new SearchTree();
        tree.insert(10);
        tree.insert(5);
        tree.insert(15);
        tree.insert(2);
        tree.insert(7);
        tree.insert(12);
        tree.insert(17);
        System.out.println(tree.search(12));
        tree.remove(10);
    }
}
